class Class
{
    constructor(number){
        this.number = number;
    }
    getDisplayName(){
        return `Class ${this.number}`;
    }
    assignLeader(student){
        if(this.isIn(student))
        {
            this.leader = student;
        }
        else
        {
            console.log(`It is not one of us.`);
        }
    }
    appendMember(student){
        student.classT = this;
    }
    isIn(student){
        return student.classT == this;
    }
}
module.exports = Class;